@charset "utf-8";
@import './resp.scss';
@import './header.scss';
@import './footer.scss';

.cart-container{
    width: 1170px;
    margin: 0 auto;
    padding: 50px 0;
    color: #191919;
    .cart-header{
        .submit{
            overflow: hidden;
            line-height: 30px;
            margin-bottom: 35px;
            h1{
                float: left;
                font-size: 16px;
                font-weight: 400;
            }
            .right{
                float: right;
                font-size: 15px;
                .delivery-cost{
                    font-size: 13px;
                    color: #9b9b9b;
                    margin-left: 10px;
                }
                .total-price{
                    color: #874e3d;
                    margin-left: 10px;
                    font-size: 16px;
                }
                .submit-btn{
                    width: 100px;
                    height: 30px;
                    border: 1px solid #979797;
                    background: #979797;
                    text-align: center;
                    color: #fff;
                    display: inline-block;
                }
            }
        }
        .titles{
            font-size: 12px;
            border-top: 1px solid #ccc;
            padding: 15px 20px;
            .thead{
                font-size: 12px;
            }
        }
    }
    input[type=checkbox]{
        width: 18px;
        height: 18px;
        box-sizing: border-box;
        text-align: center;
        vertical-align: middle;
        margin-right:5px;
        border-radius: 0;
        padding: 0;
        border: 1px solid #9b9b9b
    }
    .cart-empty{
        padding: 80px 0;
        display: block;
        text-align: center;
        >img{
            width: 150px;
            margin-bottom: 20px;
            vertical-align: middle;
        }
    }

    .cart-products{
        border: 1px solid #ccc;
        margin-top: 30px;
        display: none;
        .cake-list{
            min-height: 35px;
            padding: 40px 20px;
            position: relative;
        }
        .row{
            padding: 15px 0;
            background-color: #fff;
            position: relative;
            .col-product-img img {
                width: 80px;
                max-height: 80px;
                vertical-align: middle;
            }
            .col-product-name{
                text-align: left;
                vertical-align: top;
                .name{
                    font-size: 13px;
                    font-weight: bold;
                    margin-bottom: 20px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    >a{
                        color: skyblue;
                    }
                }
                .size{
                    font-size: 12px;
                    color: #9b9b9b;
                    margin: 6px 0;
                }
            }
            .col-product-num{
                .product-num-input{
                    height: 25px;
                    display: inline-block;
                    position: relative;
                    .add-btn,.sub-btn{
                        display: inline-block;
                        width: 25px;
                        height: 25px;
                        line-height: 25px;
                        font-size: 15px;
                        border-radius: 1px;
                        text-align: center;
                        border: 1px solid #c8c8c8;
                        user-select: none;
                        cursor: pointer;
                    }
                    input{
                        border: none;
                        width: 20px;
                        height: 25px;
                        padding: 0 5px;
                        line-height: 25px;
                        outline: 0;
                        text-align: center;
                    }
                }
            }
            .col-product-total {
                color: #874e3d;
                font-size: 15px;
                font-weight: 700;
            }
            .col-operate{
                .like-btn{
                    display: inline-block;
                    background-image: url(/images/sprite.png);
                    background-position: -94px -42px;
                    width: 19px;
                    height: 18px;
                    width: 19px;
                    position: relative;
                    margin: 0 5px;
                    cursor: pointer;
                }
                .del-btn{
                    position: relative;
                    display: inline-block;
                    opacity: .5;
                    cursor: pointer;
                    background-image: url(/images/sprite.png);
                    background-position: -75px -86px;
                    width: 17px;
                    height: 16px;
                }
            }
        }
    }

    
    .cart-footer{
        background: #eee;
        line-height: 50px;
        margin-top: 37px;
        padding-left: 20px;
        overflow: hidden;
        label{
            vertical-align: middle;
            font-size: 12px;
        }
        .cart-total{
            float: right;
            color: #9b9b9b;
            margin-right: 20px;
            line-height:49px ;
            font-size: 13px;
            text-align: right;
            .total{
                color: #874e3d;
                font-size: 16px;
                font-weight: bold;
            }
        }
        .submit-order-btn{
            background-color: #979797;
            line-height: 49px;
            font-size: 16px;
            border: 1px solid #979797;
            width: 150px;
            border-radius: 0;
            height: 50px;
            text-align: center;
            padding: 0;
            display: inline-block;
        }
        .submit-order-btn{
            float: right;
            color: #fff;
        }
    }
}
.row{
    width: 100%;
    text-align: left;
    display: table;
    li{
        display: table-cell;
        vertical-align: middle;
    }
}
.col-checkbox{
    vertical-align: top;
    width: 5%;
    label{
        vertical-align: middle;
    }
}
.col-product-img {
    width: 6%;
}
.col-product-name {
    text-align: left;
    vertical-align: top;
    width: 20%;
    max-width: 126px;
}
.col-product-price{
    width: 12%;
}
.col-product-num{
    width: 14%;
}
.col-product-total{
    width: 14%;
    font-size: 12px;
    color: #191919;
    font-weight: bold;
}
.col-operate{
    width: 8%;
    text-align: center;
    font-size: 13px;
    >.del-btn{
        border: 1px solid #191919;
        border-radius: 50%;
        &:hover{
            background-color: red;
            color: #fff;
        }
    }
}
.main-like{
    margin-top: 40px;
    margin-bottom: 60px;
    >.like-title{
        width: 1150px;
        height: 48px;
        background-color: #f2f2f2;
        border-radius: 4px;
        line-height: 48px;
        padding-left: 20px;
    }
    >.like-ul{
        width: 1195px;
        margin-top: 20px;
        margin-bottom: 20px;
        >li{
            width: 218px;
            height: 270px;
            border-radius: 10px;
            border: 1px solid #e5e5e5;
            display: inline-block;
            text-align: center;
            margin-right: 13px;
            cursor: pointer;
            >.likeList-img:hover img{
                transform: scale(1.05);
            }
            &:hover .likeList-text{
                color: #74A1D0;
            }
            >.likeList-img{
                width: 178px;
                height: 178px;
                margin: 20px auto 0;
                >img{
                    border-radius: 10px;
                    transition: all 1s;
                }
            }
            >.likeList-text{
                font-size: 12px;
                color: #333;
                margin-top: 20px;
            }
            >.likeList-price{
                font-size: 12px;
                color: red;
                display: inline-block;
                margin-top: 10px;
            }
        }
    }
}